import Vue from 'vue'
import VueRouter from 'vue-router'
//import HelloWorld from '@/components/HelloWorld.vue'

//belbin
import InitialView from '@/components/views/InitialView.vue'
import MainView from '@/components/views/MainView.vue'
import FinalView from '@/components/views/FinalView.vue'
import DescriptionView from '@/components/views/DescriptionView.vue'

//holland
import HollandInitialView from '@/components/holland/InitialView.vue'
import HollandMainView from '@/components/holland/MainView.vue'
import HollandInputView from '@/components/holland/InputView.vue'
import HollandFinalView from '@/components/holland/FinalView.vue'

//finalview
import MixedFinalView from '@/components/views/MixedFinalView.vue'

//login view
import InputView from '@/components/login/InputView.vue'
import EndView from '@/components/login/EndView.vue'
import StartView from '@/components/login/StartView.vue'

//admin view
import AdminView from '@/components/admin/MainView.vue'
import VerifyView from '@/components/admin/VerifyView.vue'


Vue.use(VueRouter)

export default new VueRouter({
    routes: [
        //mixed
        {
            path: '/mixed',
            name: 'mixed',
            component: MixedFinalView,
            meta: { title: 'EAP工作需求分析测评(管制)' }
        },
        //admin
        {
            path: '/admin',
            name: 'admin',
            component: AdminView,
            meta: { title: 'EAP工作需求分析测评(管制)' }
        },
        {
            path: '/verify',
            name: 'verify',
            component: VerifyView,
            meta: { title: '查看数据' }
        },
        //login
        {
            path: '/',
            name: 'start',
            component: StartView,
            meta: { title: 'EAP工作需求分析测评(管制)' }
        },
        {
            path: '/input',
            name: 'input',
            component: InputView,
            meta: { title: 'EAP工作需求分析测评(管制)' }
        },
        {
            path: '/end',
            name: 'end',
            component: EndView,
            meta: { title: 'EAP工作需求分析测评(管制)' }
        },
        //holland
        {
            path: '/holland',
            name: 'holland',
            component: HollandInitialView,
            meta: { title: '霍兰德测试' }
        },
        {
            path: '/hollandmain',
            name: 'hollandmain',
            component: HollandMainView,
            meta: { title: '霍兰德测试' }
        },
        {
            path: '/hollandinput',
            name: 'hollandinput',
            component: HollandInputView,
            meta: { title: '霍兰德测试' }
        },
        {
            path: '/hollandfinal',
            name: 'hollandfinal',
            component: HollandFinalView,
            meta: { title: '霍兰德测试结果' }
        },
        //belbin
        {
            path: '/belbininit',
            name: 'belbininit',
            component: InitialView,
            meta: { title: '贝尔宾测试' }
        },
        {
            path: '/belbinmain',
            name: 'belbinmain',
            component: MainView,
            meta: { title: '贝尔宾测试' }
        },
        {
            path: '/belbinresult',
            name: 'belbinresult',
            component: FinalView,
            meta: { title: '贝尔宾测试结果' }
        },
        {
            path: '/description',
            name: 'DescriptionView',
            component: DescriptionView,
            meta: { title: '贝尔宾测试结果说明' }
        }
    ]
})